﻿using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Unity;
using Microsoft.Practices.Prism.Regions;
using compshop.Infrastructure;
using compshop.Modules.ListOfTransportationBills.View;

namespace compshop.Modules.ListOfTransportationBills
{
  public  class TransportationBillsListModule: IModule
    {
        IUnityContainer container; 
        IRegionManager regionManager;

        public TransportationBillsListModule(IUnityContainer Container, IRegionManager RegionManager)
        {
            container = Container;
            regionManager = RegionManager;
        }

        public void Initialize()
        { 
          //  container.RegisterType():
            regionManager.Regions[RegionNames.ListOfTransportationBillsContent].Add(container.Resolve<TransportationBillsListView>());
        }
    }
}
